#include "imageloadthread.h"
#include "imageinstance.h"

#include <QDir>

void ImageLoadThread::run()
{
    QStringList paths = m_paths;

    foreach (const QString &p, paths) {
        ImageInstance *image = new ImageInstance(p);
        if (image->isNormal()) emit resultReady(image);
        else delete image;
    }
}
